package com.example.houpicture.controller;


import com.example.houpicture.entity.SysRegion;
import com.example.houpicture.service.ISysRegionService;
import com.org.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 地区表 前端控制器
 * </p>
 *
 * @author 龚梦
 * @since 2021-04-08
 */
@RestController
@RequestMapping("/houset")
public class SysRegionController {
    @Autowired
    private ISysRegionService iSysRegionService;

    @RequestMapping("/regionlist")
    public ResultEntity list(){
        List<SysRegion> sysRegions = iSysRegionService.houseRegionList();
        return ResultEntity.ok("200","查询成功",sysRegions);
    }
}
